Release 10.1A: OpenEdge Reporting:
Query/Results Administration and Development
Export solutions in Results
Results provides a robust set of standard export formats, but you can also develop your own standard export format. There are two basic techniques for implementing a standard export format for use at a user site:
This section describes the Sample Export Format. For information about the contents of the
results.lfile, see Appendix C "Results Files."The Sample Export format is one of the default standard export formats and performs an export using the default Progress export format. The Progress source procedure that implements the Sample Export format is
u-export.pand is located in theaderesproduct directory.You can edit the
u-export.pprocedure and code your own export solution. Note that theu-export.pprocedure executes once for each field defined for export in the query. These fields are listed in theqbf–rcnAPI shared variable for the active query. Theu-export.pprocedure defines several input parameters that pass information about the current export field from Results to the procedure. Descriptions for each of these input parameters are located in the comment text of theu-export.pprocedure.The body of the
u-export.pprocedure builds anEXPORTstatement using the input parameter values. Theu-export.pprocedure uses thePUTstatement to write theEXPORTstatement to a temporary file that Results executes to export data from the query. For more information about theEXPORTandPUTstatements, see the OpenEdge Development: Progress 4GL Reference .If you copy and edit the
u-export.pfile, make sure that the new procedure is located in a directory that is listed in thePROPATHbefore the product directory (DLC).
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |